package com.hy.cloud.user.controller;

import com.hy.cloud.user.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author Administrator
 * @version 1.0
 * @date 2025-10-21 11:32
 */
@RestController
@RequestMapping("/api/user")
public class UserController {
    @Autowired
    private UserService userService;
    @GetMapping(value="/findUserByUserId/{userId}")
    public Object findUserByUserId(@PathVariable Long userId){
        return userService.findUserById(userId);
    }
}
